package com.yl.applicationsecurity.controller;

import com.github.pagehelper.PageInfo;
import com.yl.applicationsecurity.pojo.Result;
import com.yl.applicationsecurity.pojo.ScriptState;
import com.yl.applicationsecurity.pojo.SgmSafeRisk;
import com.yl.applicationsecurity.service.ScriptStateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Date;
import java.util.List;

/**
 * @author 鹤仙问鹿仙
 * @program: Application-security
 * @description:
 * @date 2025-02-20 16:19:47
 */
@RestController
@RequestMapping("/scriptState")
public class ScriptStateController {

    @Autowired
    private ScriptStateService scriptStateService;


    @GetMapping("/list")
    public Result list(){

        List<ScriptState> list  = scriptStateService.list();
        return Result.success(list);
    }
}

